; Non-Volative Register File
; 
; @NVRegFile:name=<reg file name>, numRegs=<num of reg 1-10>, <<data=(reg1 data, reg2 data,...,regN data)>>
; NOTE:  
;   Quotes around Reg file name are optional
;   initial data is optional
@NVRegFile:name="My Reg File",numRegs=4,data=(300,301,302,303)


; Non-Volatile Register File Array			
;
; @NVRegArray:
; name:Array Name
; Number of rows and cols is automatically determined
			
@NVRegArray: name="profile1"
1000,0,3000,4000
1001,1,3001,4001
1002,0,3002,4002
1003,1,3003,4003
1004,0,3004,4004
1005,1,3005,4005
1006,0,3006,4006
1007,1,3007,4007
1008,0,3008,4008
1009,1,3009,4009

@NVRegFile:
ProfileInterval,1,8333

						
; Include other file
@NVRegArray: name=profile2,row=8,col=2	
@Include: "Reg File Adv Example - Include.csv"
						
; Quotation marks are optional						
; Extra commas are ignored

@NVRegFile:
reg file 1,2,100,101
"reg file 2",3,2147483647,2147483646,2147483645
@NVRegFile: startAdr= 2000						
"reg file 3",4,300,301,302,303
reg file 4,3,400,401,402
@NVRegFile:
reg file 5,10,500,501,502,503,504,505,506,507,508,509
@NVRegFile: startAdr=0x3FF
reg file 6,1,600,

@Include: "Reg File Adv Example - Include 2.txt"

@NVRegArray: name="profile6"
1000

@NVRegArray: name="profile7",row=2,col=2	
1000,-122
-1000,122

; Number of Rows and Cols automatically calculated
@NVRegArray: name="profile8"	
11,12,13,14
21,22,23,24
31,32,33,34
41,42,43,44


; The following will import a non-volatile register file named 'reg file df'.
; The data for each column (register) will be in a different data format.
; The data format is not specified for the 7th column, it will be set to the default 'long'.
; note:  the column (register) numbers are zero-based (i.e. 0,1,2, ...)

@NVRegFile:col0Fmt=hex,col1Fmt=uLong,col2Fmt=pos,col3Fmt=acc,col4Fmt=vel,col5Fmt=time
reg file df,7,100,101,102,103,104,105,106

; Reserve memory for an array ending at 3000 but do note initialize it
@NVRegArray: name=profile9,row=3,col=2,endAdr=3000

; Reserve memory for an array starting at 2900 but do not initailizae it.
@NVRegArray: name=profile10,row=3,col=2,startAdr=2900

